<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Post Message</title>
</head>
<body>

</body>
</html>
 
<script type="text/javascript">
    window.addEventListener("storage", function (e) {
            alert(e.newValue);
    });
        </script>